<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>

</body>
</html>

<script>
	// function HelloWorld(n) {
	// 	var i=1;
	// 	while(i<=n){
	// 		document.write("Hello World<br/>");
	// 		i++;
	// 	}
		
	// }

	// HelloWorld(60);

	function add(num1,num2,oprator) {
		switch(oprator){
			case "+":
				return num1+num2;
				break;
			case "-":
				return num1-num2;
				break;
			case "*":
				return num1*num2;
				break;
			case "/":
				return num1/num2;
				break;
			default:
				return "da"
		}

	}

    document.write(add(8,14,"-"));


</script>